package com.roncoo.pay.permission.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.roncoo.pay.permission.entity.PmsRolePermission;

public interface PmsRolePermissionRepository extends MongoRepository<PmsRolePermission, String> {

	List<PmsRolePermission> findByRoleId(String roleId);

	List<PmsRolePermission> findByPermissionId(String permissionId);

	void deleteByRoleId(String roleId);

}
